package com.cloud.school.app.service;

import com.cloud.school.app.model.AnswerModel;

import java.util.List;
import java.util.Map;

/**
 * @ClassName AnswerService
 * @Description TODO
 * @Author 36297
 * @Date 2018/12/14 0:46
 * @Version 1.0
 */
public interface AnswerService {
    List<AnswerModel> queryByQuestionId(Long questionId);

    List<AnswerModel> queryByQuestionIds(List<Long> questionIds);

    List<AnswerModel> queryDetailByQuestionIds(List<Long> questionIds);

    boolean save(AnswerModel answerModel);

    Map<Long, Long> selectCountGroupByQuestionIdIn(List<Long> questionIds);

    boolean deleteByQuestionId(Long questionId);
}
